import { defineStore } from "pinia";

const usePileStore = defineStore("pile", {
  state: () => {
    return {
      currentPile: {},
    };
  },
  actions: {
    // 更新 pile
    updatePile(pile) {
      // console.log("pile-store:", pile);
      this.currentPile = pile;
    },
  },
});

export default usePileStore;
